﻿<Window x:Class="VisaCRM.Modules.Admin.Views.ProductTypesView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" Height="658.929" Width="525">
    <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="0,0,0,0">
        <Grid.RowDefinitions>
            <RowDefinition Height="35" />
            <RowDefinition Height="35" />
            <RowDefinition Height="35" />
            <RowDefinition Height="35" />
            <RowDefinition Height="35" />
            <RowDefinition Height="35" />
            <RowDefinition Height="35" />
            <RowDefinition Height="35" />
            <RowDefinition Height="35" />
            <RowDefinition Height="35" />
            <RowDefinition Height="35" />
            <RowDefinition Height="35" />
            <RowDefinition Height="35" />
            <RowDefinition Height="35" />
            <RowDefinition Height="35" />
            <RowDefinition Height="35" />
            <RowDefinition Height="35" />
            <RowDefinition Height="35" />
            <RowDefinition Height="35" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <DataGrid Name="grdProductTypes" Grid.Column="0" Grid.RowSpan="18" SelectedItem="{Binding Path=.CurrentProductType, Mode=TwoWay}" ItemsSource="{Binding Path=AllProductTypes}" AutoGenerateColumns="False" Margin="0,0,2,0" >
            <DataGrid.Columns>
                <DataGridTextColumn Header="Product Types" Width="Auto" Binding="{Binding Path=ProductTypeName}" />
            </DataGrid.Columns>
        </DataGrid>
        <Label Content="Product Type Name" Grid.Column="1" Grid.Row="0" HorizontalAlignment="Left" Margin="19,0,0,0" VerticalAlignment="Center"/>
        <TextBox HorizontalAlignment="Left" Grid.Column="2" Grid.Row="0" Height="24" TextWrapping="Wrap" Text="{Binding CurrentProductName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged }" VerticalAlignment="Top" Width="120" RenderTransformOrigin="2.502,0.873"  Margin="5,4,0,0"/>
        <Label Content="Destination" Grid.Column="1" Grid.Row="1" HorizontalAlignment="Left" VerticalAlignment="Center"  Margin="19,9,0,0" />
        <ComboBox HorizontalAlignment="Left" x:Name="cmbDestination" AutomationProperties.AutomationId="DestinationComboBox" IsSynchronizedWithCurrentItem="True" SelectedItem="{Binding CurrentDestination,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" DisplayMemberPath="CountryName" ItemsSource="{Binding AvailableDestination}"  Margin="5,3,0,0" Grid.Row="1" VerticalAlignment="Center" Width="120" Grid.Column="2"/>
        <Label Content="Department" Grid.Column="1" Grid.Row="2" HorizontalAlignment="Left" VerticalAlignment="Center"  Margin="19,5,0,4" />
        <ComboBox HorizontalAlignment="Left" x:Name="cmbDepartment" AutomationProperties.AutomationId="DepartmentComboBox" IsSynchronizedWithCurrentItem="True" SelectedItem="{Binding CurrentDepartment,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"  DisplayMemberPath="DepartmentName" ItemsSource="{Binding AvailableDepartment}" Margin="5,9,0,4" Grid.Row="2" VerticalAlignment="Center" Width="120" Grid.Column="2"/>
        <Label Content="Stage Diagram" Grid.Column="1" Grid.Row="3" HorizontalAlignment="Left" VerticalAlignment="Center"  Margin="19,5,0,4" />
        <ComboBox HorizontalAlignment="Left" x:Name="cmbStageDiagram" AutomationProperties.AutomationId="StageDiagramComboBox" IsSynchronizedWithCurrentItem="True" SelectedItem="{Binding CurrentStageDiagram,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" DisplayMemberPath="StageDiagramName" ItemsSource="{Binding AvailableStageDiagram}" Margin="5,9,0,4" Grid.Row="3" VerticalAlignment="Center" Width="120" Grid.Column="2"/>
        <Label Content="SLS" Grid.Column="1" Grid.Row="4" HorizontalAlignment="Left" VerticalAlignment="Center"  Margin="19,5,0,4" />
        <ComboBox HorizontalAlignment="Left" x:Name="cmbSLS" IsEnabled="False" Margin="5,9,0,4" Grid.Row="4" VerticalAlignment="Center" Width="120" Grid.Column="2"/>
        <Label Content="ChargeGroup" Grid.Column="1" Grid.Row="5" HorizontalAlignment="Left" VerticalAlignment="Center"  Margin="19,5,0,4" />
        <ComboBox HorizontalAlignment="Left" x:Name="cmbChargeGroup" AutomationProperties.AutomationId="ChargeGroupComboBox" IsSynchronizedWithCurrentItem="True" SelectedItem="{Binding CurrentChargeGroup,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" DisplayMemberPath="ChargeGroupName" ItemsSource="{Binding AvailableChargeGroup}" Margin="5,9,0,4" Grid.Row="5" VerticalAlignment="Center" Width="120" Grid.Column="2"/>
        <Label Content="Event Group" Grid.Column="1" Grid.Row="6" HorizontalAlignment="Left" VerticalAlignment="Center"  Margin="19,5,0,4" />
        <ComboBox HorizontalAlignment="Left" x:Name="cmbEventGroup" AutomationProperties.AutomationId="EventGroupComboBox" IsSynchronizedWithCurrentItem="True" SelectedItem="{Binding CurrentEventGroup,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" DisplayMemberPath="EventGroupName" ItemsSource="{Binding AvailableEventGroup}" Margin="5,9,0,4" Grid.Row="6" VerticalAlignment="Center" Width="120" Grid.Column="2"/>
        <Label Content="Web Loop" Grid.Column="1" Grid.Row="7" HorizontalAlignment="Left" VerticalAlignment="Center"  Margin="19,5,0,4" />
        <Label Content="Fast Track" Grid.Column="1" Grid.Row="8" HorizontalAlignment="Left" VerticalAlignment="Center"  Margin="19,5,0,4" />
        <ComboBox HorizontalAlignment="Left" x:Name="cmbFastTrack" IsEnabled="False" Margin="5,9,0,4" Grid.Row="8" VerticalAlignment="Center" Width="120" Grid.Column="2"/>
        <Label Content="DT Category" Grid.Column="1" Grid.Row="9" HorizontalAlignment="Left" VerticalAlignment="Center"  Margin="19,5,0,4" />
        <Label Content="Calc Set" Grid.Column="1" Grid.Row="10" HorizontalAlignment="Left" VerticalAlignment="Center"  Margin="19,5,0,4" />
        <Label Content="Target Group" Grid.Column="1" Grid.Row="11" HorizontalAlignment="Left" VerticalAlignment="Center"  Margin="19,5,0,4" />
        <Label Content="Branch" Grid.Column="1" Grid.Row="12" HorizontalAlignment="Left" VerticalAlignment="Center"  Margin="19,5,0,4" />
        <ComboBox HorizontalAlignment="Left" x:Name="cmbBranch" AutomationProperties.AutomationId="BranchComboBox" IsSynchronizedWithCurrentItem="True" SelectedItem="{Binding CurrentBranch,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" DisplayMemberPath="BranchName" ItemsSource="{Binding AvailableBranch}" Margin="5,9,0,4" Grid.Row="12" VerticalAlignment="Center" Width="120" Grid.Column="2"/>
        <Label Content="DT Disabled" Grid.Column="1" Grid.Row="13" HorizontalAlignment="Left" VerticalAlignment="Center"  Margin="19,5,0,4" />
        <Label Content="Residence" Grid.Column="1" Grid.Row="14" HorizontalAlignment="Left" VerticalAlignment="Center"  Margin="19,5,0,4" />
        <ComboBox HorizontalAlignment="Left" x:Name="cmbResidence" AutomationProperties.AutomationId="ResidenceComboBox" IsSynchronizedWithCurrentItem="True" SelectedItem="{Binding CurrentResidence,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" DisplayMemberPath="CountryName" ItemsSource="{Binding AvailableResidence}" Margin="5,9,0,4" Grid.Row="14" VerticalAlignment="Center" Width="120" Grid.Column="2"/>
        <Button HorizontalAlignment="Left" Content="Add New" Margin="13,10,0,0" VerticalAlignment="Center" Width="121" Height="23" Command="{Binding Path=AddNewCommand}" RenderTransformOrigin="0.456,0.247" Grid.Column="1" Grid.Row="15"/>
        <Button HorizontalAlignment="Left" Content="Edit" Margin="13,10,0,0" VerticalAlignment="Center" Width="121" Height="23" Command="{Binding Path=EditCommand}" Grid.Column="1" Grid.Row="16"/>
        <Button HorizontalAlignment="Left" Content="Save" Margin="13,10,0,0" VerticalAlignment="Center" Width="121" Height="23" Command="{Binding Path=SaveCommand}" Grid.Column="2" Grid.Row="15"/>
        <Button HorizontalAlignment="Left" Content="Cancel" Margin="13,3,0,0" VerticalAlignment="Center" Width="121" Height="23" Command="{Binding Path=CancelCommand}" Grid.Column="2" Grid.Row="16"/>
        <Button HorizontalAlignment="Left" Content="Delete" Margin="13,10,0,0" VerticalAlignment="Center" Width="121" Height="23" Command="{Binding Path=DeleteCommand}" Grid.Column="3" Grid.Row="15"/>
        <Button HorizontalAlignment="Left" Content="Close" Margin="13,10,0,0" VerticalAlignment="Center" Width="121" Height="23" Command="{Binding Path=CloseCommand}" Grid.Column="3" Grid.Row="16"/>
        
    </Grid>
</Window>
